//登录页本地持久化
import { defineStore } from 'pinia'
import { ref } from 'vue'
//默认导出 useUserStore
export const useUserStore = defineStore('user', () => {
	// token 持久化
	const token = ref()

	const setToken = (_token) => {
		token.value = _token
	}
	return { token, setToken }
}, {
	unistorage: true //全部持久化
})